#include <stdio.h>

int main(void)
{
    int num, a, b, c, num2;

    printf("Enter a three-digit number: ");
    scanf("%d", &num);

    a = num / 100;
    b = num % 100 / 10;
    c = num % 10;

    num2 = c * 100 + b * 10 + a;

    printf("The reversal is: %d", num2);

    return 0;
}
